package cn.lyjuan.payment.third.base.common.mapper;

import cn.lyjuan.base.mybatis.MyMapper;
import cn.lyjuan.payment.third.base.common.entity.pay.PayIapEntity;
import org.apache.ibatis.annotations.Param;

public interface PayIapEntityMapper extends MyMapper<PayIapEntity> {

    /**
     * count- tranId && originId
     *
     * @param tranId   交易id
     * @param originId 原始交易id
     * @return Integer
     */
    Integer countIapTranId(@Param("tranId") Long tranId, @Param("originId") Long originId);

    /**
     * 根据 tranId 查询
     *
     * @param tranId tranId
     * @return PayIapEntity
     */
    PayIapEntity queryByTranId(@Param("tranId") Long tranId);
}